package design.factory;

import design.factory.HumanFactory1;
import design.factory.HumanFactory2;

public class FactoryTest {
    public static void main(String[] args) {
        Human hm = IHumanFactory.getHumanInstance(HumanFactory1.HumanType.MAN);
        hm.sleep();
        hm = IHumanFactory.getHumanInstanceByFactoryAndType(HumanFactory2.get(), HumanFactory2.HumanType.WOMAN);
        hm.sleep();
    }
}
